package com.rbs.dao;

import com.rbs.entity.Phone;

import java.util.List;

public interface PhoneDao {
    //查询所有
    public List<Phone> selectAllPhone();
    //根据id查询
    public Phone selectPhoneById(int pid);
    //删除
    public int deletePhoneById(int pid);
    //修改
    public int updatePhone(Phone phone);
    //添加
    public int insertPhone(Phone phone);
    //根据brandId删除
    public int deletePhoneByBrandId(int id);
    //查询当前页显示几条数据
    List<Phone> selectByPage(int start,int PageSize);
    //查询数据库表中有几条数据
    int selectCount();
}
